package com.itheima.cart.service;

import com.itheima.cart.dto.ShoppingCartDTO;
import com.itheima.cart.pojo.ShoppingCart;


import java.util.List;

public interface ShoppingCartService {
    /**
     *添加购物车
     * @param shoppingCartDTO
     * @return
     */
    void add(ShoppingCartDTO shoppingCartDTO);

    List<ShoppingCart> show();
    /**
     * 清空购物车
     * @return
     */
    void clean();

    /**
     * 删掉购物
     */
    void reduce(ShoppingCartDTO shoppingCartDTO);

    List<ShoppingCart> getByDishIdOrSetmealIdWithUserId(ShoppingCart shoppingCart);

    void addshoppingCart(ShoppingCart shoppingCart);

    void cleanmCart(Long userId);
}
